Skip to main content

workgroup

Table: workgroup

The workgroup table defines workgroups, their schedules, and assigned locations.

Columns

Column NameData TypeConstraintsDescription
workgroupIdint(11)NOPrimary key identifying the workgroup
dayvarchar(45)NODay of the week or schedule
assignedCheckIntimeNOScheduled check-in time
assignedCheckOuttimeNOScheduled check-out time
assignedLocationint(11)YESAssigned location ID
laxTimeint(11)YESAllowed lateness in minutes
workgrouptypeIdint(11)NOReference to workgroup type
createdDatedatetimeYESRecord creation timestamp
lastEditedDatedatetimeYESRecord last edited timestamp

Indexes

  • workgrouptype_fk_idx — Index on workgrouptypeId
  • workgroup_location_fk_idx — Index on assignedLocation

Foreign Key Relations

  • assignedLocation → location.locationId
  • workgrouptypeId → workgrouptype.workgrouptypeId

Usage Notes

  • Defines the schedule and assigned locations for each workgroup.
  • Supports attendance tracking and field visit planning.